package com.itheima.d5_block;

public class Test {
    static {
        System.out.println("我是Test的静态代码块~~");
    }
    public static void main(String[] args) {
        // 目标：认识两种代码块，了解他们的特点和基本作用。
        System.out.println(Student.number);
        System.out.println(Student.schoolName);

        System.out.println("---------------------------------------");
        Student s1 = new Student();
        Student s2 = new Student();
        Student s3 = new Student("尼古拉斯.赵四");

        System.out.println("Student.schoolName = " + Student.schoolName);
    }
}
